package com.ruoyi.project.treat.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

public class SystemDrug extends BaseEntity {
    /*药品ID*/
    private Integer drugId;
    /*药品名称*/
    private String durgName;
    /*药品编码*/
    private String durgCode;
    /*生产厂家（外键ID）*/
    private Integer durgProducer;
    /*药品类型*/
    private String durgType;
    /*处方类型*/
    private String durgOtcType;
    /*单位g*/
    private String durgUnit;
    /*处方价格*/
    private Integer durgOtcPrice;
    /*库存量*/
    private Integer durgNumber;
    /*预警值（超过这个值变红）*/
    private Integer durgNumberMin;
    /*换算量*/
    private Integer durgConvert;
    /*状态（0正常,1警告）*/
    private String durgStatus;

    public SystemDrug() {
    }

    public SystemDrug(Integer drugId, String durgName, String durgCode, Integer durgProducer, String durgType, String durgOtcType, String durgUnit, Integer durgOtcPrice, Integer durgNumber, Integer durgNumberMin, Integer durgConvert, String durgStatus) {
        this.drugId = drugId;
        this.durgName = durgName;
        this.durgCode = durgCode;
        this.durgProducer = durgProducer;
        this.durgType = durgType;
        this.durgOtcType = durgOtcType;
        this.durgUnit = durgUnit;
        this.durgOtcPrice = durgOtcPrice;
        this.durgNumber = durgNumber;
        this.durgNumberMin = durgNumberMin;
        this.durgConvert = durgConvert;
        this.durgStatus = durgStatus;
    }

    public Integer getDrugId() {
        return drugId;
    }

    public void setDrugId(Integer drugId) {
        this.drugId = drugId;
    }

    public String getDurgName() {
        return durgName;
    }

    public void setDurgName(String durgName) {
        this.durgName = durgName;
    }

    public String getDurgCode() {
        return durgCode;
    }

    public void setDurgCode(String durgCode) {
        this.durgCode = durgCode;
    }

    public Integer getDurgProducer() {
        return durgProducer;
    }

    public void setDurgProducer(Integer durgProducer) {
        this.durgProducer = durgProducer;
    }

    public String getDurgType() {
        return durgType;
    }

    public void setDurgType(String durgType) {
        this.durgType = durgType;
    }

    public String getDurgOtcType() {
        return durgOtcType;
    }

    public void setDurgOtcType(String durgOtcType) {
        this.durgOtcType = durgOtcType;
    }

    public String getDurgUnit() {
        return durgUnit;
    }

    public void setDurgUnit(String durgUnit) {
        this.durgUnit = durgUnit;
    }

    public Integer getDurgOtcPrice() {
        return durgOtcPrice;
    }

    public void setDurgOtcPrice(Integer durgOtcPrice) {
        this.durgOtcPrice = durgOtcPrice;
    }

    public Integer getDurgNumber() {
        return durgNumber;
    }

    public void setDurgNumber(Integer durgNumber) {
        this.durgNumber = durgNumber;
    }

    public Integer getDurgNumberMin() {
        return durgNumberMin;
    }

    public void setDurgNumberMin(Integer durgNumberMin) {
        this.durgNumberMin = durgNumberMin;
    }

    public Integer getDurgConvert() {
        return durgConvert;
    }

    public void setDurgConvert(Integer durgConvert) {
        this.durgConvert = durgConvert;
    }

    public String getDurgStatus() {
        return durgStatus;
    }

    public void setDurgStatus(String durgStatus) {
        this.durgStatus = durgStatus;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SystemDrug that = (SystemDrug) o;
        return Objects.equals(drugId, that.drugId) &&
                Objects.equals(durgName, that.durgName) &&
                Objects.equals(durgCode, that.durgCode) &&
                Objects.equals(durgProducer, that.durgProducer) &&
                Objects.equals(durgType, that.durgType) &&
                Objects.equals(durgOtcType, that.durgOtcType) &&
                Objects.equals(durgUnit, that.durgUnit) &&
                Objects.equals(durgOtcPrice, that.durgOtcPrice) &&
                Objects.equals(durgNumber, that.durgNumber) &&
                Objects.equals(durgNumberMin, that.durgNumberMin) &&
                Objects.equals(durgConvert, that.durgConvert) &&
                Objects.equals(durgStatus, that.durgStatus);
    }

    @Override
    public int hashCode() {
        return Objects.hash(drugId, durgName, durgCode, durgProducer, durgType, durgOtcType, durgUnit, durgOtcPrice, durgNumber, durgNumberMin, durgConvert, durgStatus);
    }

    @Override
    public String toString() {
        return "SystemDrug{" +
                "drugId=" + drugId +
                ", durgName='" + durgName + '\'' +
                ", durgCode='" + durgCode + '\'' +
                ", durgProducer=" + durgProducer +
                ", durgType='" + durgType + '\'' +
                ", durgOtcType='" + durgOtcType + '\'' +
                ", durgUnit='" + durgUnit + '\'' +
                ", durgOtcPrice=" + durgOtcPrice +
                ", durgNumber=" + durgNumber +
                ", durgNumberMin=" + durgNumberMin +
                ", durgConvert=" + durgConvert +
                ", durgStatus='" + durgStatus + '\'' +
                '}';
    }
}
